TEMPLATE = lib
TARGET = KDeadMouseUtils
QT += declarative
QT += dbus
CONFIG += qt plugin

LIBS += -L/usr/lib/ -lvlc -lphonon

INCLUDEPATH += /usr/include
DEPENDPATH += /usr/include


TARGET = $$qtLibraryTarget($$TARGET)
uri = com.deadmouse.qmlcomponents.utils

# Input
SOURCES += \
    kdeadmouseutils_plugin.cpp \
    shellinvoker.cpp \
    dbusmplayercli.cpp \
    dbusservice.cpp \
    simpledbus.cpp \
    qmlsetting.cpp \
    vlcplayer.cpp

HEADERS += \
    kdeadmouseutils_plugin.h \
    shellinvoker.h \
    dbusmplayercli.h \
    dbusservice.h \
    simpledbus.h \
    qmlsetting.h \
    vlcplayer.h

OTHER_FILES = qmldir

!equals(_PRO_FILE_PWD_, $$OUT_PWD) {
    copy_qmldir.target = $$OUT_PWD/qmldir
    copy_qmldir.depends = $$_PRO_FILE_PWD_/qmldir
    copy_qmldir.commands = $(COPY_FILE) \"$$replace(copy_qmldir.depends, /, $$QMAKE_DIR_SEP)\" \"$$replace(copy_qmldir.target, /, $$QMAKE_DIR_SEP)\"
    QMAKE_EXTRA_TARGETS += copy_qmldir
    PRE_TARGETDEPS += $$copy_qmldir.target
}

qmldir.files = qmldir
symbian {
    TARGET.EPOCALLOWDLLDATA = 1
} else:unix {
    installPath = /usr/lib/qt4/imports/$$replace(uri, \\., /)
    qmldir.path = $$installPath
    target.path = $$installPath
    INSTALLS += target qmldir
}
